#ifndef LEAVERECORDVIEW_H
#define LEAVERECORDVIEW_H

#include <QWidget>
#include <QTableWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QHeaderView>
#include "adminmanager.h"

class LeaveRecordView : public QWidget
{
    Q_OBJECT
public:
    explicit LeaveRecordView(AdminManager *adminManager, QWidget *parent = nullptr);
    void initUI();
    void loadPendingLeaveRequests();

signals:

private slots:
    void onApproveButtonClicked();
    void onRejectButtonClicked();

private:
    AdminManager *m_adminManager;
    QTableWidget *m_leaveRequestsTable;
    QPushButton *m_approveButton;
    QPushButton *m_rejectButton;
    QPushButton *m_refreshButton;
     SqlOperator  m_dbOperator;

};

#endif // LEAVERECORDVIEW_H
